package com.ruoyi.ring.mapper;

import java.util.List;
import com.ruoyi.ring.domain.RingTrainingInfo;
import org.apache.ibatis.annotations.Param;

/**
 * 训练详细Mapper接口
 * 
 * @author liuwp
 * @date 2025-08-18
 */
public interface RingTrainingInfoMapper 
{
    /**
     * 查询训练详细
     * 
     * @param id 训练详细主键
     * @return 训练详细
     */
    public RingTrainingInfo selectRingTrainingInfoById(Long id);

    /**
     * 查询训练详细列表
     * 
     * @param ringTrainingInfo 训练详细
     * @return 训练详细集合
     */
    public List<RingTrainingInfo> selectRingTrainingInfoList(RingTrainingInfo ringTrainingInfo);

    /**
     * 可以业务主键查询一条训练详细
     *
     * @param ringTrainingInfo 训练详细
     * @return 训练详细集合
     */
    public RingTrainingInfo selectOneRingTrainingInfo(RingTrainingInfo ringTrainingInfo);

    /**
     * 新增训练详细
     * 
     * @param ringTrainingInfo 训练详细
     * @return 结果
     */
    public int insertRingTrainingInfo(RingTrainingInfo ringTrainingInfo);

    /**
     * 修改训练详细
     * 
     * @param ringTrainingInfo 训练详细
     * @return 结果
     */
    public int updateRingTrainingInfo(RingTrainingInfo ringTrainingInfo);

    /**
     * 条件修改训练详细
     *
     * @param ringTrainingInfo 训练详细
     * @param ringTrainingInfo 训练详细条件
     * @return 结果
     */
    public int updateRingTrainingInfoCondition(@Param("ringTrainingInfo") RingTrainingInfo ringTrainingInfo, @Param("ringTrainingInfoCondition") RingTrainingInfo ringTrainingInfoCondition);

    /**
     * 删除训练详细
     * 
     * @param id 训练详细主键
     * @return 结果
     */
    public int deleteRingTrainingInfoById(Long id);

    /**
     * 条件删除训练详细
     *
     * @param ringTrainingInfo 训练详细
     * @return 结果
     */
    public int deleteRingTrainingInfoByCondition(RingTrainingInfo ringTrainingInfo);

    /**
     * 批量删除训练详细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRingTrainingInfoByIds(Long[] ids);
}
